package com.euond.permission.entities;

import com.baomidou.mybatisplus.annotations.TableName;
import com.euond.common.core.entities.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 资源表权限表
 */
@Getter
@Setter
@TableName(value = "sys_resource_permission")
public class ResourcePermission extends BaseEntity {

    /**
     * 资源ID
     */
    @NotNull
    private Long resourceId;

    /**
     * 权限ID
     */
    private Integer permissionId;

    /**
     * 权限值(2的幂值)
     */
    @NotNull
    private Integer permissionVal;

    /**
     * 权限名称
     */
    @Size(min = 1, max = 20)
    @NotNull
    private String permissionName;

}